package cn.gs.global.table.account;

// @author gs
import cn.gs.global.table.exchg.Exchange;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;

@Entity
public class SimOgn implements Serializable {

    @Id
    private int id;
    @OneToMany(mappedBy = "ogn", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    private Set<SimKeep> keeps = new HashSet<>();
    private long cash, unassigned;
    private int lastcheck;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getCash() {
        return cash;
    }

    public void setCash(long cash) {
        this.cash = cash;
    }

    public int getLastcheck() {
        return lastcheck;
    }

    public void setLastcheck(int lastcheck) {
        this.lastcheck = lastcheck;
    }

    public Set<SimKeep> getKeeps() {
        return keeps;
    }

    public void setKeeps(Set<SimKeep> keeps) {
        this.keeps = keeps;
    }

    public long getUnassigned() {
        return unassigned;
    }

    public void setUnassigned(long unassigned) {
        this.unassigned = unassigned;
    }
}
